package com.morehair.bean.vo.wx;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description:@JsonFormat(pattern = "YYYY-MM-dd HH-mm-ss")
 * @Author raohui
 * @Date 2021/6/9 4:21
 */
@Data
public class WxCheckoutVo {

    private Double grouponPrice;
    private int grouponRulesId;
    private CheckedAddressBean checkedAddress;
    private Double actualPrice;
    private Double orderTotalPrice;
    private Double couponPrice;
    private int availableCouponLength;
    private int couponId;
    private Double freightPrice;
    private Double goodsTotalPrice;
    private int addressId;
    private List<CheckedGoodsListBean> checkedGoodsList;

    @Data
    public static class CheckedAddressBean {
        private int id;
        private String name;
        private int userId;
        private int provinceId;
        private int cityId;
        private int areaId;
        private String address;
        private String mobile;
        private boolean isDefault;
        @JsonFormat(pattern = "YYYY-MM-dd HH-mm-ss")
        private Date addTime;
        @JsonFormat(pattern = "YYYY-MM-dd HH-mm-ss")
        private Date updateTime;
        private boolean deleted;
    }
    @Data
    public static class CheckedGoodsListBean {
        private int id;
        private int userId;
        private int goodsId;
        private String goodsSn;
        private String goodsName;
        private int productId;
        private Double price;
        private int number;
        private boolean checked;
        private String picUrl;
        @JsonFormat(pattern = "YYYY-MM-dd HH-mm-ss")
        private Date addTime;
        @JsonFormat(pattern = "YYYY-MM-dd HH-mm-ss")
        private Date updateTime;
        private boolean deleted;
        private List<String> specifications;


    }
}









